TUTOR\Utils D

Total Complexity 694
Dependencies 9
Dependents 2
Total lines 8,106
Lines of code 5,079
Logical lines of code 1,838
Comment lines 2,058
Methods 244
Properties 0

Methods 244

Method Rating Maintainability Complexity Lines of code
get_earning_statements()
B
34 18 97
get_course_id_by()
B
36 13 101
get_students_by_instructor()
A
37 6 99
do_enroll()
A
44 9 44
get_video_info()
A
44 9 43
get_course_completed_percent()
A
50 10 28
get_instructors()
A
40 7 70
get_withdrawals_history()
A
42 7 61
get_assignments_by_instructor()
A
42 7 60
get_course_previous_content_id()
A
49 9 30
languages()
A
29 1 140
get_attachments()
A
43 7 49
has_video_in_single()
A
57 9 15
get_quiz_attempts_by_course_ids()
A
46 7 40
get_option()
A
52 8 25
get_earning_sum()
A
43 6 54
get_course_first_lesson()
A
47 7 38
course_with_materials()
A
52 8 22
get_random_questions_by_quiz()
A
48 7 36
get_reviews_by_instructor()
A
38 4 79
get_qa_questions()
S
39 4 74
get_course_content_ids_by()
S
52 7 26
get_course_rating()
S
41 4 70
user_profile_completion()
S
46 6 39
get_ip()
S
57 7 19
has_enrolled_content_access()
S
56 7 17
tutor_dashboard_nav_ui_items()
S
59 7 14
get_course_prev_next_contents_by_id()
S
51 6 27
get_total_qa_question()
S
42 4 57
cancel_course_enrol()
S
47 5 39
unanswered_question_count()
S
43 4 54
tutor_dashboard_pages()
S
41 3 67
get_raw_course_price()
S
55 6 19
let_to_num()
S
57 6 18
complete_course_enroll()
S
58 6 15
is_course_added_to_cart()
S
58 6 15
is_tutor_frontend_dashboard()
S
60 6 13
get_quiz_attempt()
S
51 5 28
is_instructor_of_this_course()
S
54 5 24
star_rating_generator()
S
54 5 21
get_earning_chart()
S
43 3 50
get_answers_by_quiz_question()
S
50 4 35
get_course_duration()
S
54 5 20
can_user_manage()
S
56 5 19
get_quiz_attempts()
S
49 4 34
get_tutor_avatar()
S
54 5 18
get_course_price()
S
57 5 17
get_lesson_type_icon()
S
58 5 16
avalue_dot()
S
58 5 16
sanitize_array()
S
59 5 15
count_enrolled_users_by_course()
S
51 4 29
get_question_types()
S
43 2 58
currency_symbol()
S
61 5 12
get_reviews_by_user()
S
43 2 57
delete_course_progress()
S
50 4 27
get_quiz_option()
S
61 5 12
get_course_enrolled_ids_by_order_id()
S
52 4 26
get_instructors_by_course()
S
49 3 38
get_quiz_answers_by_ids()
S
54 4 23
playtime_array()
S
54 4 22
get_orders_by_user_id()
S
50 3 33
get_course_by_quiz()
S
57 4 17
get_unique_slug()
S
56 4 16
get_rating_value()
S
58 4 16
tutor_pages()
S
50 3 31
is_enrolled()
S
51 3 31
has_user_role()
S
65 5 8
has_any_enrolled()
S
53 3 28
most_rated_courses()
S
53 3 27
get_pages()
S
61 4 12
get_assignment_option()
S
61 4 12
get_assignments_by_course()
S
48 2 41
get_completed_lesson_count_by_course()
S
52 3 25
get_attached_quiz()
S
55 3 24
profile_url()
S
54 3 23
get_earning_chart_yearly()
S
47 2 37
quiz_ended_attempts()
S
55 3 22
get_quiz_answer_options_by_question()
S
55 3 21
quiz_attempts()
S
56 3 21
get_course_by_enrol_id()
S
56 3 21
get_top_question()
S
48 2 35
course_levels()
S
56 3 19
instructor_status()
S
56 3 19
get_instructor_ratings()
S
50 2 34
get_questions_by_quiz()
S
58 3 18
get_courses()
S
50 2 33
get_all_quiz_attempts_by_user()
S
58 3 18
get_course_rating_by_user()
S
50 2 33
get_db_version()
S
57 3 18
course_progress_status_context()
S
57 3 17
get_courses_by_instructor()
S
50 2 31
seconds_to_time_context()
S
63 4 8
get_flash_msg()
S
58 3 15
most_popular_courses()
S
52 2 30
checking_nonce()
S
67 4 6
is_tutor_dashboard()
S
67 4 7
playtime_string()
S
63 4 8
get_qa_answer_by_answer_id()
S
53 2 30
set_flash_msg()
S
58 3 14
user_profile_permalinks()
S
59 3 14
get_enrolment_by_enrol_id()
S
53 2 29
is_completed_course()
S
53 2 28
get_assignment_deadline_date()
S
60 3 12
has_lesson_edit_access()
S
61 3 12
get_rating_by_id()
S
52 2 27
get_answer_by_id()
S
53 2 26
get_course_id_by_lesson()
S
63 3 11
get_youtube_video_id()
S
63 3 11
is_course_purchasable()
S
63 3 11
get_enrolments()
S
51 1 36
is_wishlisted()
S
56 2 21
max_questions_for_take_quiz()
S
57 2 18
get_single_comment_user_post_id()
S
58 2 17
get_active_courses_by_user()
S
57 2 17
get_course_categories()
S
58 2 17
get_quiz_question_by_id()
S
59 2 17
get_course_reviews()
S
50 1 32
get_attempt()
S
60 2 16
get_enrolled_courses_by_user()
S
58 2 16
get_course_tags()
S
59 2 16
get_addon_config()
S
64 3 10
get_user_id()
S
67 3 9
update_video()
S
70 3 6
tutor_price()
S
65 3 9
delete_quiz_attempt()
S
64 3 9
course_archive_page_url()
S
65 3 9
get_courses_by_user()
S
59 2 15
get_total_quiz_attempts_by_course_ids()
S
51 1 30
get_qa_question()
S
51 1 30
get_post_id()
S
67 3 9
get_cover_photo_url()
S
64 3 9
count()
S
71 3 6
update_lesson_reading_info()
S
64 3 9
input_old()
S
65 3 10
get_vimeo_video_id()
S
67 3 8
get_tutor_dashboard_page_permalink()
S
65 3 9
tutor_user_social_icons()
S
51 1 30
has_pmpro()
S
73 3 4
array_only()
S
70 3 6
get_next_course_content_order_id()
S
61 2 13
get_courses_by_student_instructor_id()
S
54 1 27
add_instructor_role()
S
61 2 12
remove_instructor_role()
S
62 2 11
get_package_object()
S
62 2 11
get_qa_answer_by_question()
S
53 1 26
get_video_stream_url()
S
62 2 11
get_tutor_user()
S
55 1 26
get_wishlist()
S
54 1 25
get_announcements()
S
55 1 24
get_total_students_by_instructor()
S
55 1 24
get_total_enrolments()
S
55 1 23
get_completed_assignment()
S
56 1 23
get_course_count_by_instructor()
S
56 1 22
get_total_quiz_attempts()
S
55 1 22
is_assignment_submitted()
S
57 1 21
is_assignment_submitting()
S
56 1 21
get_students()
S
55 1 21
tutor_social_share_icons()
S
56 1 21
get_total_instructors()
S
56 1 21
get_course_contents_by_id()
S
57 1 20
get_students_data_by_course_id()
S
57 1 20
get_total_students()
S
56 1 19
get_completed_quiz()
S
58 1 19
tutor_custom_pagination()
S
57 1 19
get_random_question_by_quiz()
S
57 1 19
is_started_quiz()
S
58 1 19
get_completed_courses_ids_by_user()
S
58 1 18
get_enrolled_courses_ids_by_user()
S
58 1 18
get_quiz_answers_by_attempt_id()
S
59 1 18
tutor_get_screen_ids()
S
58 1 18
get_assignment_submit_info()
S
58 1 18
get_lesson()
S
58 1 17
get_assigned_courses_ids_by_instructors()
S
59 1 16
get_course_count()
S
60 1 16
product_belongs_with_course()
S
60 1 16
get_course_id_by_content()
S
59 1 16
count_reviews_wrote_by_user()
S
60 1 16
get_edd_products()
S
60 1 16
get_lesson_count()
S
60 1 16
get_wc_products_db()
S
60 1 16
is_addon_enabled()
S
70 2 6
reset_password()
S
64 2 8
get_current_url()
S
64 2 10
is_plugin_active()
S
69 2 6
is_script_debug()
S
79 2 3
course_edit_link()
S
66 2 8
quiz_update_attempt_info()
S
64 2 8
total_questions_for_student_by_quiz()
S
59 1 15
get_assignments()
S
61 1 15
get_total_assignments()
S
61 1 15
course_enrol_status_change()
S
65 2 9
is_completed_lesson()
S
65 2 9
is_html5_video()
S
65 2 9
get_video()
S
67 2 8
can_user_edit_course()
S
77 2 3
is_course_fully_booked()
S
71 2 5
get_courses_for_instructors()
S
59 1 15
announcement_content()
S
64 2 10
get_next_topic_order_id()
S
60 1 15
get_user_withdraw_method()
S
67 2 8
student_register_url()
S
69 2 7
instructor_register_url()
S
69 2 7
str_split()
S
65 2 9
get_user_by_login()
S
61 1 14
get_enrolled_statuses()
S
62 1 14
get_course_contents_by_topic()
S
59 1 14
tutor_dashboard_permalinks()
S
60 1 14
get_lessons_by_topic()
S
61 1 13
get_quiz_id_by_question()
S
62 1 13
quiz_next_question_order_id()
S
62 1 13
get_topics()
S
62 1 12
get_course_categories_term()
S
63 1 12
is_course_enrolled_by_lesson()
S
70 1 6
get_student_emails_by_course_id()
S
79 1 3
mark_lesson_complete()
S
68 1 7
course_sub_pages()
S
68 1 7
get_lesson_reading_info()
S
70 1 6
array_get()
S
79 1 3
has_wc()
S
80 1 3
quiz_attempt_info()
S
80 1 3
get_lesson_reading_info_full()
S
69 1 6
get_optimized_duration()
S
82 1 3
update_option()
S
72 1 5
has_edd()
S
69 1 6
quiz_next_question_id()
S
71 1 5
get_lesson_count_by_course()
S
74 1 4
dashboard_page_id()
S
73 1 5
help_tip()
S
80 1 3
get_earnings_completed_statuses()
S
67 1 10
tutor_dashboard_url()
S
71 1 5
print_view()
S
74 1 5
order_status_context()
S
71 1 5
get_course_id_by_assignment()
S
75 1 4
is_instructor()
S
75 1 4
price_type()
S
72 1 5
referer()
S
75 1 4
has_bp()
S
69 1 6
is_tutor_order()
S
79 1 3
get_course_settings()
S
69 1 6
get_item_content_drip_settings()
S
69 1 6
get_gradebooks()
S
72 1 5
has_wcs()
S
76 1 4
get_course_product_id()
S
72 1 5
get_archive_page_course_count()
S
77 1 4